Elementor\Core\Files\File_Types\Svg B

Total Complexity 86
Dependencies 5
Dependents 4
Total lines 800
Lines of code 393
Logical lines of code 164
Comment lines 338
Methods 29
Properties 1

Methods 29

Method Rating Maintainability Complexity Lines of code
set_svg_meta_data()
A
54 12 17
validate_allowed_attributes()
A
54 9 19
wp_prepare_attachment_for_js()
S
51 7 26
sanitizer()
S
48 6 32
get_allowed_attributes()
S
37 1 94
sanitize_svg()
S
56 5 20
strip_xlinks()
S
56 4 18
get_inline_svg()
S
59 4 15
sanitize_elements()
S
59 4 14
is_allowed_tag()
S
62 3 12
get_allowed_elements()
S
48 1 38
strip_doctype()
S
69 3 7
validate_use_tag()
S
69 3 6
strip_comments()
S
66 3 8
strip_php_tags()
S
64 3 9
is_encoded()
S
66 2 8
is_remote_value()
S
64 2 9
file_sanitizer_can_run()
S
78 2 3
validate_file()
S
69 2 6
strip_line_breaks()
S
79 1 3
get_file_extension()
S
82 1 3
remove_element()
S
81 1 3
has_js_value()
S
79 1 3
is_a_attribute()
S
78 1 3
get_mime_type()
S
82 1 3
decode_svg()
S
80 1 3
encode_svg()
S
80 1 3
delete_meta_cache()
S
81 1 3
__construct()
S
71 1 5